<?php
getLogin()
	{
	if($_SESSION['user'])
		{
		//logged in, should be ok to proceed
		}
	else{
		//render login page
		?>
		<div id="content">
			<form action='login.php' method='post'>
			<table>
				<tr><td>Username:</td><td><input type='text' name='username' /></td></tr>
				<tr><td>Password:</td><td><input type='password' name='password' /></td></tr>
				<tr><td colspan='2'><input type='submit' name='submit' value='Submit' /></td></tr>
			</table>
			</form>
		</div>
		<?
		pagebottom();
		exit();
		}
	}
?>